﻿@{
    int screenWidth = ViewBag.Width;
    int imageWidth = screenWidth == 1024 ? 690 : ((screenWidth == 1280 || screenWidth == 1366 || screenWidth == 1400) ? 930 : 1170);  
}
<div id="top-content">
			<a href="/Home/Event">
				<img src="/Content/NAP/bannerBMT.png" style="box-shadow: 10px 10px 10px #888;" />
			</a>
</div>

<script>
    $(function () {
        _width = $(window).width();
        if (_width == 1024) {
            $("#top-content").find("img").attr("width", 690);
        }
        else if (_width == 1600) {
            $("#top-content").find("img").attr("width", 1170);
        }
        else {
            $("#top-content").find("img").attr("width", 930);
        }
    });
</script>